package com.cookie.libgdx.airforcecolonel.sprite;

import com.badlogic.gdx.math.Vector2;

public class Bomb extends DynamicGameObject {

	public Bomb(float x, float y, float width, float height) {
		super(x, y, width, height);
	}
	
	public void setAccel(float ax,float ay){
		this.accel.x = ax;
		this.accel.y = ay;
	}

	@Override
	public void update(float deltaTime) {
		Vector2 deltaS = this.velocity.add(this.accel.mul(deltaTime/2)).mul(deltaTime);
		this.positon.add(deltaS);
	}
}
